web.setConfig($$CONFIG);
$$.toast = require('../widget/toast');
$$.alertTips = require('../widget/alert');
$$.foot = require('../../$res/component/foot');
$$.page = require('../../$res/component/page_tool2');
$$.search = require('../../$res/component/search');
$$.filter = require('../../$res/component/filter');
$$.public = require('./public');
$$.methods.$401 = function () {
    setTimeout(function () {
        sessionStorage.clear();
        location.replace('/sys/open/login.html?url=' + location.href);
    }, 0)
};
$$.methods.$400 = function (ret) {
    $$.toast.hide();
    $$.alertTips.show(ret.msg, 'error');
};
$$.methods.page_start = function () {
    $$.public.scrollTop();
};
$$.methods.page_error = function (e) {
    $$.alertTips.show(JSON.stringify(e), 'error');
    $$.toast.hide();
};
$$.init_comps = {
    head: function () {
        var val = $$.localStore("userInfo");
        if (!val) {
            $$.methods.$401();
            return false;
        }
        Vue.component('head_top', require('../../$res/component/head'));
        $$.m.menu_top = val
    },
    menu: function () {
        var val = $$.localStore("menu");
        if (!val) {
            $$.methods.$401();
            return false;
        }
        Vue.component('menu_child', require('../../$res/component/menu_child'));
        $$.m.menu_child = val
    }
};

